[XM] Fix missing security check in block-attach
authorAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)
committerAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_ ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

tools/python/xen/xm/main.py

index b14afcc8cca7c8c83d76b31680a42de74bdeae33..a639d4d993ac86acbc75152731cee30b7c2393f9 100644 (file)
@@ -1261,7 +1261,7 @@ def parse_block_configuration(args):
         label = security.get_security_printlabel(dominfo)
     else:
         label = None
-        security.res_security_check(args[1], label)
+    security.res_security_check(args[1], label)
 
     return (dom, vbd)